package com.um.jdy.app.shop.entity.dto;

import com.um.jdy.common.shop.enums.CommentEnum;
import com.um.springboot.starter.orm.entity.BaseDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Title
 * @Description
 * @Author renjunwei
 * @Date 2023/2/16 14:09
 */
@Data
public class AddCommentDTO extends BaseDTO {

    @ApiModelProperty(value = "订单id")
    private String shopOrderId;

    @ApiModelProperty(value = "发送到买家秀")
    private Boolean pushBuyerShow;

    @ApiModelProperty(value = "商品")
    private List<CommentGoodDTO> goods;

    @Data
    public static class CommentGoodDTO extends BaseDTO {

        @ApiModelProperty(value = "订单商品id")
        private String shopOrderGoodsId;

        @ApiModelProperty(value = "星数量")
        private Integer star;

        @ApiModelProperty(value = "评价内容")
        private String content;

        @ApiModelProperty(value = "资源类型：Image-图片｜Video-视频")
        private CommentEnum.ResType resType;

        @ApiModelProperty(value = "评价图片")
        private String thumbs;

        @ApiModelProperty(value = "评价视频")
        private String videoSrc;

    }

}


